package com.gxar.quick.ar.server.base.model.exchange.vo;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.gxar.quick.ar.server.base.common.utils.BigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/2/19 16:21
 */
@Data
public class ExchangeOrderVO {

    @ApiModelProperty("日期")
    @JSONField(name = "created_at")
    @JsonProperty("created_at")
    @JsonFormat(pattern = "yyyy.MM.dd", timezone = "GMT+8")
    private Date createdAt;

    @ApiModelProperty("方法：3-兑换，4-AR集市购买，5-赠送，6-转赠")
    @JSONField(name = "method")
    @JsonProperty("method")
    private Integer method;

    @ApiModelProperty("名称")
    @JSONField(name = "name")
    @JsonProperty("name")
    private String name;

    @ApiModelProperty("识别图")
    @JSONField(name = "identify")
    @JsonProperty("identify")
    private String identify;

    @ApiModelProperty("价格")
    @JSONField(name = "price")
    @JsonProperty("price")
    @JsonSerialize(using = BigDecimalSerialize.class)
    private BigDecimal price;

    @ApiModelProperty(hidden = true)
    private String configInfo;

}
